package entity;

// Generated 2016-8-10 9:51:13 by Hibernate Tools 4.0.0

import java.util.Date;
import java.util.List;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicUpdate;

/**
 * PsFunction generated by hbm2java
 */
@Entity
@Table(name="ps_function")
@DynamicUpdate(true)
public class PsFunction implements java.io.Serializable {
	@Id
	@Column(name="id")
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_GEN")
	@SequenceGenerator(name = "SEQ_GEN", sequenceName = "seq_function", allocationSize = 1)
	private Integer id;
	@Column(name="functioncode")
	private String functioncode;
	@Column(name="functionname")
	private String functionname;
	@Column(name="creationtime")
	private Date creationtime;
	@Column(name="createdby")
	private String createdby;
	@Column(name="lastupdatetime")
	private Date lastupdatetime;
	@Column(name="funcurl")
	private String funcurl;
	@Column(name="parentid")
	private Integer parentid;
	@Column(name="isstart")
	private Byte isstart;
	@OneToMany
	@JoinColumn(name="functionCode")
	private Set<PsRolePermission> permissions;
	
	
	
	public Set<PsRolePermission> getPermissions() {
		return permissions;
	}
	public void setPermissions(Set<PsRolePermission> permissions) {
		this.permissions = permissions;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getFunctioncode() {
		return functioncode;
	}
	public void setFunctioncode(String functioncode) {
		this.functioncode = functioncode;
	}
	public String getFunctionname() {
		return functionname;
	}
	public void setFunctionname(String functionname) {
		this.functionname = functionname;
	}
	public Date getCreationtime() {
		return creationtime;
	}
	public void setCreationtime(Date creationtime) {
		this.creationtime = creationtime;
	}
	public String getCreatedby() {
		return createdby;
	}
	public void setCreatedby(String createdby) {
		this.createdby = createdby;
	}
	public Date getLastupdatetime() {
		return lastupdatetime;
	}
	public void setLastupdatetime(Date lastupdatetime) {
		this.lastupdatetime = lastupdatetime;
	}
	public String getFuncurl() {
		return funcurl;
	}
	public void setFuncurl(String funcurl) {
		this.funcurl = funcurl;
	}
	public Integer getParentid() {
		return parentid;
	}
	public void setParentid(Integer parentid) {
		this.parentid = parentid;
	}
	public Byte getIsstart() {
		return isstart;
	}
	public void setIsstart(Byte isstart) {
		this.isstart = isstart;
	}

	
}
